<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>APP过场动画</title>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/user.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" id="splashAddForm">
    <input type="hidden" name="type" value="0"/>
    <input type="hidden" name="status" value="0"/>
    <input type="hidden" name="fromId" id="fromId"/>
    <div class="user_left">
       <!--<div class="layui-form-item">
            <label class="layui-form-label">资讯选择</label>
            <div class="layui-input-block">
                <input type="text" value="" class="layui-input" id="infoSel" lay-verify="required" readonly="true"/>
            </div>
        </div>-->
        <input type="hidden" name="platform" id="platform" value="1"></input>
        <div class="layui-form-item">
            <label class="layui-form-label">推广平台</label>
            <div class="layui-input-block" id="platformRadio">
                <input type="radio" name="plat" value="1" title="无" checked=""></input>
                <input th:each="t:${type}" type="radio" name="plat" th:scheme="${t.scheme}" th:value="${t.alias}" th:title="${t.name}" th:checked="${t.alias}==${extension.platform}"></input>
<!--                <input th:each="t:${type}" th:if="${t.alias}!='alipay'" type="radio" th:name="${t.alias}" th:value="${t.alias}" th:title="${t.name}"></input>-->
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">推广地址</label>
            <div class="layui-input-block">
                <input type="text" name="scheme" autocomplete="off" placeholder="请输入推广地址" th:value="${extension.scheme}" class="layui-input"/>
            </div>
        </div>

        <div class="layui-form-item platform">
            <label class="layui-form-label">参数1</label>
            <div class="layui-input-block">
                <input type="text" name="param1" autocomplete="off" placeholder="参数1" class="layui-input"/>
            </div>
        </div>

        <div class="layui-form-item platform">
            <label class="layui-form-label">参数2</label>
            <div class="layui-input-block">
                <input type="text" name="param2" autocomplete="off" placeholder="参数2" class="layui-input"/>
            </div>
        </div>


        <div class="layui-form-item platform">
            <label class="layui-form-label">参数3</label>
            <div class="layui-input-block">
                <input type="text" name="param3" autocomplete="off" placeholder="参数3" class="layui-input"/>
            </div>
        </div>


        <div class="layui-form-item platform">
            <label class="layui-form-label">参数4</label>
            <div class="layui-input-block">
                <input type="text" name="param4" autocomplete="off" placeholder="参数4" class="layui-input"/>
            </div>
        </div>

        <input type="hidden" name="imgUrl" id="imgUrl" value="http://chengguoyule-img.oss-cn-beijing.aliyuncs.com/open/20171125151133_yingshiqianyan.png?Expires=1826953894&amp;OSSAccessKeyId=LTAI8hTtxsI962e5&amp;Signature=uxAECK2l0ydBMoEHDqN4XZjbr7I%3D"/>
        <div class="layui-form-item">
            <label class="layui-form-label">图片选择</label>
            <div class="layui-input-block">
                <input type="file" id="splashImgUpload" name="file" class="layui-upload-file" lay-title="选择开屏图片"/>
                <p style="color: #f50;">*以下为APP开屏页默认展示图，请选择一张上传(1242x1800)</p>
                <img th:if="${#strings.isEmpty(splash.imgUrl)}" th:src="@{'http://chengguoyule-img.oss-cn-beijing.aliyuncs.com/open/20171125151133_yingshiqianyan.png?Expires=1826953894&amp;OSSAccessKeyId=LTAI8hTtxsI962e5&amp;Signature=uxAECK2l0ydBMoEHDqN4XZjbr7I%3D'}" class="layui-show" id="splashImg" height="268.8" width="150"/>
                <img th:if="${not #strings.isEmpty(splash.imgUrl)}" th:src="${splash.imgUrl}" class="layui-show" id="splashImg" height="268.8" width="150"/>
            </div>
        </div>
    </div>
    <!--<div class="layui-upload">
        <button type="button" class="layui-btn" id="test1">上传图片</button>
        <div class="layui-upload-list">
            <img class="layui-upload-img" id="demo1">
            <p id="demoText"></p>
        </div>
    </div>-->
    <div class="layui-form-item" style="margin-left: 5%;">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="submitSplash" lay-filter="submitSplash">立即提交</button>
            <button class="layui-btn layui-btn-primary" id="resetBtn">重置</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../js/splash/splashAdd.js?version=1.0.1"></script>
</body>
</html>